package com.rayc.mall.core.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: Ray-C
 * @CreateTime: 2025-03-24
 * @Description: 标记添加缓存
 * @Version: 1.0
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface CacheAddByUserId {
    String key();

    boolean useArgs() default false;

    long expireSeconds() default -1;
}
